package com.example.DemoDataeaseExample.type;

import com.example.DemoDataeaseExample.entity.DatasourceConfiguration;
import java.util.Arrays;
import java.util.List;

public class Kingbase extends DatasourceConfiguration {
    // JDBC驱动类名
    private String driver = "com.kingbase8.Driver";
    
    // 默认额外参数
    private String extraParams = "";
    
    // 非法参数列表（安全考虑）
    private List<String> illegalParameters = Arrays.asList("allowLoadLocalInfile");
    
    // 显示表的SQL
    private List<String> showTableSqls = Arrays.asList("SELECT table_name FROM information_schema.tables WHERE table_schema = 'public'");
    
    @Override
    public String getDriver() {
        return driver;
    }
    
    @Override
    public void setDriver(String driver) {
        this.driver = driver;
    }
    
    public String getExtraParams() {
        return extraParams;
    }
    
    public void setExtraParams(String extraParams) {
        this.extraParams = extraParams;
    }
    
    public List<String> getIllegalParameters() {
        return illegalParameters;
    }
    
    public void setIllegalParameters(List<String> illegalParameters) {
        this.illegalParameters = illegalParameters;
    }
    
    public List<String> getShowTableSqls() {
        return showTableSqls;
    }
    
    public void setShowTableSqls(List<String> showTableSqls) {
        this.showTableSqls = showTableSqls;
    }
}